<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>插值表达式</h1>
        <h3>{{ msg }}</h3>
        <h3>{{ count }}</h3>
        <h1>v-text</h1>
        <div v-text="msg"></div>
        <h1>v-model</h1>
        <div v-html="content"></div>
        <input type="text" v-model="msg">
        <input type="text" v-model="count">
        <div v-on:click="greet">点我</div>
    </div>
</body>
<script src="compiler.js"></script>
<script src="observer.js"></script>
<script src="index.js"></script>
<script>
    let vm = new Vue({
        el: '#app',
        data: {
            msg: 'Hello',
            count: 100,
            message: { main:66 },
            content: '<h1 style="color:red">666</h1>'
        },
        methods: {
            greet: function() {
                console.log(233)
            }
        }
    })
    vm.msg = {main: 100}
    console.log(vm)

</script>
</html>